package com.hsylient.javase.chapter02.demo01.demo07;

public class AbstractTest {

    public static void main(String[] args) {
        Person person = new Student();
        System.out.println(person.getDescription());
        Person person1 = new Employ();
        System.out.println(person1.getDescription());

//        String description = new Person() {
//            @Override
//            public String getDescription() {
//                return "xxxxx";
//            }
//        }.getDescription();
//        System.out.println(description);
    }
}
